package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundsTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author ls
 * @version v1.0
 * @date 2021/8/7
 **/
@FeignClient(name = "gulimall-coupon")
public interface CouponFeignService {
    /**
     * 保存spu积分信息
     * @param spuBoundsTo
     * @return
     */
    @PostMapping("coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    /**
     * 功能描述: <br>
     * 保存 sku 价格，满减，打折信息
	 * @param skuReductionTos
	 * @return {@link R}
     * @author ls
     * @date   2021/8/17 14:34
     */
    @PostMapping("coupon/skufullreduction/saveSkuReductions")
    R saveSkuReductions(@RequestBody List<SkuReductionTo> skuReductionTos);

}
